package com.migu.test;

import org.junit.Before;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.migu.spms.dao.inf.IProjectDO;

public class testActivity {
	private ApplicationContext ac;
	
	@Before
	public void initSystem() {
		String conf = "dispatcher-servlet.xml";
		ac = new ClassPathXmlApplicationContext(conf);
	}
	
    
    @Test
    public void testUser(){
      IProjectDO projectDao=ac.getBean(IProjectDO.class);
      Long pid=469L;
      String projd=pid.toString();
      String name=projectDao.selectProjectNameById(projd);
      System.out.println(name);
    }

}
